import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import echarts from 'echarts'
import animated from 'animate.css'
import Base64 from 'js-base64'
import md5 from 'js-md5'
import {Cell,List , Tab, Tabs, Card, Form, Field, Button, Picker, Step, Steps, PullRefresh, Toast, Tag, Uploader, Dialog, Image as VanImage, Search, DatetimePicker, Popup, ImagePreview, Swipe, SwipeItem } from 'vant'
import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'
import {
  Select, Option, DatePicker, Upload, Tree
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 七牛上传图片
const qiniuDomainBaseUrl = 'https://up-z2.qiniup.com'
const qiniuImgAddress = 'https://pension-pic.nuomankeji.com'
Vue.prototype.$qiniuDomainBaseUrl = qiniuDomainBaseUrl
Vue.prototype.$qiniuImgAddress = qiniuImgAddress
Vue.use(Cell)
Vue.use(List)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Card)
Vue.use(animated)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Picker)
Vue.use(Step)
Vue.use(Steps)
Vue.use(PullRefresh)
Vue.use(Toast)
Vue.use(Tag)
Vue.use(Uploader)
Vue.use(Dialog)
Vue.use(VanImage)
Vue.use(Search)
Vue.use(Popup)
Vue.use(DatetimePicker)
Vue.use(ImagePreview)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.prototype.$Base64 = Base64
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.prototype.$md5 = md5
Vue.use(Select).use(Option).use(DatePicker).use(Upload).use(Tree)
Vue.use(VueDirectiveImagePreviewer)
Vue.use(router)
new Vue({
  router,
  store,
  echarts,
  Base64,
  render: h => h(App)
}).$mount('#app')
